const User = require('../model/user')

var crypto = require('crypto');
var content = '123456'
var md5 = crypto.createHash('md5');
md5.update(content);
var sign = md5.digest('hex');

async function addMock() {
    let one = await User.findOne({ username: 'kree' });
    if (!one) {
        await new User({
            username: 'kree',
            password: sign
        }).save()
    }


    let data = await User.find({});

    console.log(data);
}

addMock();